<?php
/*------------------------------------------------------------------------------
this file is part of Web Application Kit http://webappkit.net
Copyright (C) 2006 J.Ducastel <jducastel@jducastel.fr>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
------------------------------------------------------------------------------*/

/**
* instance object storage generic interface
* @author J.Ducastel <jducastel@jducastel.fr>
* @version 
*/
class wakObjectStore {
/*------------------------------------------------------------------------------
                                                                     constructor
------------------------------------------------------------------------------*/
	/**
	*
	* @access public
	* /
	function objectStore() {
		$this->__construct();
	}/**/
	
	/**
	* real constructor
	* @access
	* /
	function __construct() {
		
	}/**/
/*------------------------------------------------------------------------------
                                                                  public methods
------------------------------------------------------------------------------*/
	/**
	* sets class for stored objects
	* @param
	* @access public
	* @return bool
	*/
	function setClass($class) {
		$this->objectClass=$class;
	}/**/
	
	/**
	* sets store's location
	* @access public
	* @param string
	* return bool
	*/
	function setLocation($location) {
		$this->location=$location;
	}
	
	/**
	* gets an object by unique id
	* @param
	* @access public
	* @return object
	*/
	function getById($id) {
		
	}/**/
	
	/**
	* saves an object into store
	* @param
	* @param
	* @access public
	* @return bool
	*/
	function save(& $object, $id=null) {
		
	}/**/
	
	/**
	* searches objects by an array of criteria
	* @param array criteria
	* @access public
	* @return array
	*/
	function search($criteria) {
		
	}/**/
	
	/**
	* deletes an object from store
	* @param
	* @access public
	* @return bool
	*/
	function delete($id) {
		
	}/**/
	
	/**
	* 
	* @param
	* @access public
	* @return 
	* /
	function () {
		
	}/**/
/*------------------------------------------------------------------------------
                                                                      properties
------------------------------------------------------------------------------*/
	/**
	* @var string class of stored object
	*/
	var $objectClass;
	/**
	* @var string storage location definition
	*/
	var $location;
/*------------------------------------------------------------------------------
                                                                 private methods
------------------------------------------------------------------------------*/
	/**
	* 
	* @param
	* @access protected
	* @return 
	* /
	function () {
		
	}/**/
	
	/**
	* 
	* @param
	* @access protected
	* @return 
	* /
	function () {
		
	}/**/
/*------------------------------------------------------------------------------
                                                                 private methods
------------------------------------------------------------------------------*/
	/**
	* 
	* @param
	* @access private
	* @return 
	* /
	function () {
		
	}/**/
	
	/**
	* 
	* @param
	* @access private
	* @return 
	* /
	function () {
		
	}/**/
}
?>
